import Home from '../components4/Homes'
import Login from '../components4/Login'
import Detail from '../components4/Detail'

import One from '../components4/home/One'
import Two from '../components4/home/Two'
import Three from '../components4/home/Three'
import AAA from '../components4/AAA'

export default [
    // 重定向数据
    {
        to: "/home",
        from: "/"
    },
    {
        path: "/home",
        com: Home,
        children: [
            {
                to: "/home/one",
                from: "/home"
            },
            {
                path: "/home/one",
                com: One
            },
            {
                path: "/home/three",
                com: Three,
                auth: true
            },
            // 需要拦截的页面
            {
                path: "/home/two",
                com: Two
            }
        ]
    },
    {
        path: "/detail",
        com: Detail,
        children: [
            {
                path: "/detail/aaa",
                com: AAA
            }
        ]
    },
    {
        path: "/login",
        com: Login
    }
]

